<!doctype html>
<!-- The DOCTYPE declaration above will set the    -->
<!-- browser's rendering engine into               -->
<!-- "Standards Mode". Replacing this declaration  -->
<!-- with a "Quirks Mode" doctype may lead to some -->
<!-- differences in layout.                        -->

<html>
  <head>
    <meta http-equiv="content-type" content="text/html; charset=UTF-8">

    <!--                                                               -->
    <!-- Consider inlining CSS to reduce the number of requested files -->
    <!--                                                               -->    

    <!--                                           -->
    <!-- Any title is fine                         -->
    <!--                                           -->
    <title>QTI Page editor</title>
    
    <!--                                           -->
    <!-- This script loads your compiled module.   -->
    <!-- If you add any GWT meta tags, they must   -->
    <!-- be added before this line.                -->
    <!--                                           -->
    
	<script type="text/javascript" language="javascript" src="qtipageeditor/qtipageeditor.nocache.js"></script>
	
  </head>

  <!--                                           -->
  <!-- The body can have arbitrary html, or      -->
  <!-- you can leave the body empty if you want  -->
  <!-- to create a completely dynamic UI.        -->
  <!--                                           -->
  <body>

    <!-- OPTIONAL: include this if you want history support -->
    <iframe src="javascript:''" id="__gwt_historyFrame" tabIndex='-1' style="position:absolute;width:0;height:0;border:0"></iframe>
    
    <!-- RECOMMENDED if your web app will not function without JavaScript enabled -->
    <noscript>
      <div style="width: 22em; position: absolute; left: 50%; margin-left: -11em; color: red; background-color: white; border: 1px solid red; padding: 4px; font-family: sans-serif">
        Your web browser must have JavaScript enabled
        in order for this application to display correctly.
      </div>
    </noscript>
    
    <script language="javascript">
            var registry;
            
            window.qti_page_editor = {}
            
			var tinyCallback = new Object();
			tinyCallback.onTinyMceCreated = function(){
				alert("jupi!");
				window.qti_page_editor.setTinyMCECellHeight("600px");
			}
           
            qti_page_editor.onModuleLoaded = function()
            { 	
				var conf = new Object();
				conf.pageBasePath= "http://ya.det/work/ctrl.php/7e7cf517d0af72e198c0231e86a5d04b,author/content/api/64/script_00001/page_14.utp"
				conf.cellId="editorContainer";
				conf.tinyMceCreatedCallback = tinyCallback				
				this.register(conf);
				//this.setSaveCallback(saveListener);
				
            	
            }          

			
			
			
			
    </script>    

    <table align="center" width="100%">       
      <tr>
        <td id="editorContainer"></td>        
      </tr> 	
    </table>  
	<input type="button" onclick="onClick1();">
	<input type="button" onclick="onClick2();">
   
  </body>
</html>
